package com.lg.head_first.chap01.duck;

/**
 * @author by Mr. Li 2020/7/22 21:02
 */
public class MallardDuck extends Duck {

    public MallardDuck() {
        quackBehavior = new Quack();
        flyBehavior = new FlyWithWings();
    }

    @Override
    public void display() {
        System.out.println("绿头鸭");
    }
}
